<%@ page import="cn.wolfcode.domain.File" %><%--
  Created by IntelliJ IDEA.
  User: 孙晓萌
  Date: 2021/8/14
  Time: 10:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    Long uid = (Long)request.getSession().getAttribute("uid");
    System.out.println(uid);
    if(uid==null||uid==0){
        response.sendRedirect("/index.jsp");
    }else {
        request.setAttribute("uid",uid);
    }
%>
<form action="/chaxunServlet/saveOrUpdate2" method="post" enctype="multipart/form-data">
    <input type="hidden" name="filename">
    <input type="file" name="pic">
    <input type="hidden" name="uid" value="${uid}">
    <input type="submit" value="提交">
</form>
</body>
</html>
